import { request } from "@/utils/http"
import type { getHosListSearchParamsType, hospitalListReqReturnType } from "./model/hospitalListTypes"
// hoscode, hosname, hostype, provinceCode, cityCode, districtCode, status
//1.获取医院列表数据的请求
export const getHospitalListRequest = (page: number, limit: number, searchParams: getHosListSearchParamsType) => {
  return request.get<any, hospitalListReqReturnType>(`/admin/hosp/hospital/${page}/${limit}`, {
    params: searchParams
  })
}